package cn.cas.mango.service;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GetType {

  private String FILENAME = "entities.txt";
  private Map<Integer, List<String>> map = new HashMap<>();
  {
    int count = 0;
    try (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) {
      String line;

      while ((line = br.readLine()) != null) {
        map.put(++count, new ArrayList<>(Arrays.asList(line.trim().split("\\s+"))));

      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
  public List<String> getFILENAME(int layer) {
    return map.get(layer);
  }
}
